from sklearn import datasets
import numpy as np
mnist = datasets.fetch_mldata('MNIST original')  #从http://mldata.org下载数据

print(mnist.data.shape)
print(mnist.target.shape)

print(np.unique(mnist.target))